import { request } from '../untils'

export default {
  getShopList() {
    return request.get('/my/shop/shoplist')
  },
  addShop(data) {
    return request.post('/my/shop/addshop', data)
  },
  // 获取用户购物车列表
  getUserShopList() {
    return request.get('/my/shop/usershoplist')
  },
  // 用户获取购买记录列表
  userShopGoodsList() {
    return request.get('/my/shop/usershopgoodslist')
  },
  // 移除购物车内商品
  delUserShopInfo(data) {
    return request.post('/my/shop/delshopinfo', data)
  },
  // 购买商品
  shopGoods(data) {
    return request.post('/my/shop/shopgoods', data)
  },
  addGoodsInfo(data) {
    return request.post('/my/shop/addgoodsinfo', data)
  },
  // 获取所有用户购买记录列表
  getUserGoodsList() {
    return request.get('/my/shop/usershoppinglist')
  },
  // 更改物流状态接口
  changeGoodsStatus(data) {
    return request.post('/my/shop/changestatus', data)
  },
  // 下架商品
  delGoodsInfo(data) {
    return request.post('/my/shop/delgoodsinfo', data)
  }
}
